package com.starrk.myblog.foreground.mapper;

import com.starrk.myblog.foreground.entity.Authority;
import com.starrk.myblog.foreground.entity.Role;
import com.starrk.myblog.foreground.entity.TbBlogger;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Set;

/**
 * <p> Mapper 接口 </p>
 *
 * @author Starrk
 * @since 2018-03-25
 */
public interface TbBloggerDao extends BaseMapper<TbBlogger> {

  List<Authority> findAuthorityByBloggerId(Long bloggerId);

  List<Role> findRolesByBloggerId(Long bloggerId);

  List<Authority> findAuthorityByUsername(String username);

  List<Role> findRolesByUsername(String username);
}
